package com.ymatou.iapi.productmanager.service;

import java.util.ArrayList;
import java.util.List;

import org.json.JSONObject;

import com.ymttest.business.YmatouAutoTestCall;
import com.ymttest.utils.EnvSetup;
import com.ymttest.utils.MapUtil;

public class GetUserPreSaleCountCall extends YmatouAutoTestCall{

	private static String opurl ="api/product/GetUserPreSaleCount";
	
	public GetUserPreSaleCountCall() {
		super(EnvSetup.getSystemUrl("productmanager"),opurl,"POST","JSON");
	}
	@Override
	public void addDefHeader() {
		client.addHeader("Content-Type", "application/json");
	}

	
	public JSONObject call(int sellerId){
		return this.callAndGetReturnData(MapUtil.hashMap("UserId",sellerId));
	}
	
	public static void main(String[] args) {
		List<String> aa = new ArrayList<>();
		List<String> bb = new ArrayList<>();
		
		aa.add("11");
		aa.add("12");
		aa.add("22");
		aa.add("13");
		aa.add("14");
		
		
		
		bb.add("13");
		bb.add("12");
		bb.add("22");
		
		System.out.println(bb.stream().allMatch(aa::contains));
		
	}
	
	
	
	
	
	
	

	
	
}
